package kr.saeildamil.androidstudy.ch04;

import kr.saeildamil.androidstudy.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.ContextMenu;
import android.view.ContextMenu.ContextMenuInfo;
import android.view.View;

public class Ch04Main extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch04_main);
	}
	public void mOnClick(View v){
		switch(v.getId()){
		case R.id.btnandedit_btn:
			startActivity(new Intent(this, ButtonAndEditText.class));
			break;
		case R.id.imageviewtest_btn:
			startActivity(new Intent(this, ImageViewTest.class));
			break;
		}
	}
	@Override
	public void onCreateContextMenu(ContextMenu menu, View v,
			ContextMenuInfo menuInfo) {
		super.onCreateContextMenu(menu, v, menuInfo);
	}
	
}
